package com.spark.trouble.handle

import android.app.Activity
import android.content.Intent
import android.os.Bundle
import com.spark.common.BaseActivity
import com.spark.common.helper.MutableStatePagerAdapter
import com.spark.common.helper.Picker
import com.spark.trouble.R

/**
 * 隐患录入
 */
class HTinputActivity : BaseActivity() {

    companion object {
        fun actionStart(host: Activity) {
            host.startActivity(Intent(host, HTinputActivity::class.java))
        }
    }

    override fun contentResId(): Int {
        return R.layout.act_container
    }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        loadRootFragment(R.id.fl_content, HTInputFragment.newInstance())
    }

    override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
        super.onActivityResult(requestCode, resultCode, data)
        Picker.onActivityResulted(this, requestCode, resultCode, data)
    }
}